Simple LinQ question: convert [][] to []

Posted by Maxim Polishchuk on Stack Overflow See other posts from Stack Overflow or by Maxim Polishchuk
Published on 2010-04-15T11:05:30Z Indexed on 2010/04/15 11:13 UTC
Read the original article Hit count: 383

Filed under:
|
|
|

Hello,

I would like to get collection or list of Item objects, but I get array of arrays now.

Item[][] s = employees.Select(e => e.Orders.Select(o => new Item(e.ID, o.ID)).ToArray()).ToArray();

Can anyone select me solution to do it?

P.S. just LinQ solution :)

© Stack Overflow or respective owner

Related posts about array

Related posts about LINQ